<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>消息中心</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="fly,layui,前端社区">
    <meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
    <link rel="stylesheet" href="../res/layui/css/layui.css">
    <link rel="stylesheet" href="../res/css/global.css">
    <script src="../res/layui/layui.js"></script>
</head>

<body>

  <!-- <div class="header">
  <div class="main">
    <a class="logo" href="../post/index.html" title="网博">网博社区</a>
    <div class="nav">
      <a class="nav-this" href="../post/index.html">
        <i class="iconfont icon-wenda"></i>问答
      </a>
    </div>
    
    <div class="nav-user">      
      登入后的状态
      
      <a class="avatar" href="home.html">
        <img src="../res/images/avatar/11.jpg">
        <cite>贤心</cite>
        <i>VIP</i>
      </a>
      <div class="nav">
        <a href="set.html"><i class="iconfont icon-shezhi"></i>设置</a>
        <a href="login.html"><i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;"></i>退了</a>
      </div>
    </div>
  </div>
</div> -->


  <div class="main fly-user-main layui-clear">
    <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
      <li class="layui-nav-item"><a href="home.html"> <i class="layui-icon">&#xe609;</i> 我的主页 </a></li>
      <li class="layui-nav-item "><a href="index.html"> <i class="layui-icon">&#xe612;</i> 用户中心 </a></li>
      <li class="layui-nav-item "><a href="set.html"> <i class="layui-icon">&#xe620;</i> 基本设置 </a></li>
      <li class="layui-nav-item layui-this"><a href="message.html"> <i class="layui-icon">&#xe611;</i> 我的消息 </a></li>
      <li class="layui-nav-item  "><a href="vip.html"> <i class="layui-icon">&#xe61a;</i> 账户充值/会员 </a></li>
      <li class="layui-nav-item"><a href="report.html"> <i class="layui-icon">&#xe61a;</i> 审核举报 </a></li>
    </ul>

    <div class="site-tree-mobile layui-hide">
      <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>

    <div class="fly-panel fly-panel-user" pad20>
      <div class="layui-tab layui-tab-brief" lay-filter="user" id="LAY_msg" style="margin-top: 15px;">
        <a href="toDeleteAllMsg">
          <button class="layui-btn layui-btn-danger" id="LAY_delallmsg">清空全部消息</button>
        </a>
        <div id="LAY_minemsg" style="margin-top: 10px;">
          <!--<div class="fly-none">您暂时没有最新消息</div>-->
          <ul class="mine-msg">
            <c:forEach items="${requestScope.msg }" var="msg" varStatus="loop">
              <li data-id="123">
                <blockquote class="layui-elem-quote">
                  <a href="home.html" target="myIframe"><cite>${msg.msgFromUserId }</cite></a>给了您<a target="myIframe"
                    href="user/showMsgDetail?msgId=${msg.msgId }"><cite>${msg.msgName }</cite></a>
                </blockquote>
                <p><span><fmt:formatDate value="${msg.msgCreateTime }" pattern="yyyy-MM-dd HH:mm" /></span>
                  <a href="toDeleteOneMsg?msgId=${msg.msgId }" class="layui-btn layui-btn-small layui-btn-danger fly-delete">删除</a>
                </p>
              </li>
            </c:forEach>
            <!-- <li data-id="123">
            <blockquote class="layui-elem-quote">
              系统消息：欢迎使用 layui
            </blockquote>
            <p><span>2017-05-01</span><a href="javascript:;" class="layui-btn layui-btn-small layui-btn-danger fly-delete">删除</a></p>
          </li> -->

          </ul>
        </div>
      </div>
    </div>

  </div>


  <!-- <div class="footer">
  <p><a href="#">网博社区</a> 2017 &copy; <a href="#/">njwangbo.com</a></p>
  <p>
    <a href="#" target="_blank">产品授权</a>
    <a href="#" target="_blank">网博社区</a>
    <a href="#" target="_blank">微信公众号</a>
  </p>
</div> -->

  <script>
    layui.use('element', function () {
      var element = layui.element();
    });
  </script>
  <script>

    layui.cache.page = '';
    layui.cache.user = {
      username: '游客'
      , uid: -1
      , avatar: '../res/images/avatar/00.jpg'
      , experience: 83
      , sex: '男'
    };
    layui.config({
      version: "2.0.0"
      , base: '../res/mods/'
    }).extend({
      fly: 'index'
    }).use('fly');
  </script>
</body>

</html>